<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>{:C('sitename')}-下线列表</title>
		<meta name="format-detection" content="telephone=no,email=no"/>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
		<link href="__PUBLIC__/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/animate.min.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
		<link href="__PUBLIC__/Home/css/page.css" rel="stylesheet">
	</head>
	<style type="text/css">
		body {
			-moz-user-select: none;
			-webkit-user-select: none;
			-ms-user-select: none;
			-khtml-user-select: none;
			-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
			overflow-y: scroll;
		}
		.facesj{
			display: inline-block;
			background-color: #1fa1dc;
			width: 60px;
		    height: 32px;
		    line-height: 32px;
		    border-radius: 3px;
		    text-align: center;
		    font-size: 14px;
		    margin-top:6px;
		    border: 1px solid #1fa1dc;
		    color: #FFF;
		    margin-left:10px;
		}
		.alipay_choose,.bank_choose{display: none}
		/*.loginscreen{padding:40px 20px;}*/
		.header .ptitle{height:45px;line-height: 45px}
				/*分页样式*/
		.pages a,.pages span {
		    display:inline-block;
		    padding:4px 7px;
		    margin:0 2px;
		    border:1px solid #D5D4D4;
		    -webkit-border-radius:1px;
		    -moz-border-radius:1px;
		    border-radius:1px;
		}
		.pages a,.pages li {
		    display:inline-block;
		    list-style: none;
		    text-decoration:none; color:#3399ff;
		}
		
		.pages a:hover{
		    border-color:#3399ff;
		}
		.pages span.current{
		    background:#3399ff;
		    color:#FFF;
		    font-weight:700;
		    border-color:#3399ff;
		}
		.pages{
			text-align: center;
		}
		/*分页样式*/
		
		.layui-layer{
			top:48px !important;
		}
	</style>
	<body>
		<div class="header">
		  <div class="all_w ">
		    <div class="gofh"> <a href="{:U('Home/Run/index')}"><img src="/Public/Home/img/jt_03.jpg"></a> </div>
		    <div class="ptitle">
		      下线列表
		        <a href="/" class="backgame">返回游戏</a>
		    </div>
		  </div>
		</div>
		<div class=" text-center loginscreen  animated fadeInDown">
			<div class="row">
				<form method="get" action="{:U('Home/User/offline')}">
					<div class="col-sm-2">
						<input type="text" placeholder="开始时间" id="starttime" name="starttime" value='{$start|default=""}' class="form-control">
						<input type="hidden" name="id" value="{$id}">
					</div>
					<div class="col-sm-2">
						<input type="text"  placeholder="结束时间" id="endtime" name="endtime" value="{$end|default=''}" class="input-sm form-control"> 
					</div>
					<button type="submit" class="btn btn-sm btn-primary"> 搜索</button> 
                	<button class="btn btn-sm btn-primary timesearch" time="today"> 今天</button>
                	<button  class="btn btn-sm btn-primary timesearch" time="yestoday"> 昨天</button>
                	<button class="btn btn-sm btn-primary timesearch" time="week"> 最近一周</button>
                	<button class="btn btn-sm btn-primary timesearch" time="month"> 最近一月</button>
				</form>
			</div>
			<table class="table table-striped table-hover table-bordered" style="width:auto;overflow:auto;display:inline-block;">
				<thead>
					<tr>
						<th>头像</th>
						<th>用户名</th>
						<th>注册时间</th>
						<th>所得佣金</th>
						<th>进项流水</th>
						<th>出项流水</th>
						<th>客户输赢</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
						<tr>
							<td width="60"><img src="{$vo.headimgurl}"/></td>
							<td width="80">{$vo.nickname}</td>
							<td width="100">{$vo.reg_time|date="Y-m-d",###}</td>
							<td width="90">{$vo.yong}</td>
							<td width="60">{$vo.add_points|default="0"}</td>
							<td width="60">{$vo.del_points|default="0"}</td>
							<td width="60">{$vo.ying}</td>
							<td width="200">
								<a href="/Home/User/offxz?id={$vo.id}">下注记录</a> <br>
								<a href="/Home/User/offcz?id={$vo.id}">上提款记录</a> <br>
								<a href="__APP__/Home/User/offline/id/{$vo.id}">查看下线</a> <br>
							</td>
						</tr>
					</volist>
				</tbody>
			</table>
		</div>
		<div class="pages">
				{$show}
			</div>
			<div>
				<span>所得总佣金<font color="red">{$yong['sum_yong']|default='0'}</font></span>&nbsp;
				<span>总充值<font color="red">{$integral['add_fen']|default='0'}</font></span>&nbsp;
				<span>总提款<font color="red">{$integral['xia_fen']|default='0'}</font></span><br>	
				<span>总进项流水<font color="red">{$order['sum_add']|default='0'}</font></span>&nbsp;
				<span>总出项流水<font color="red">{$order['sum_del']|default='0'}</font></span>&nbsp;
				<span>总客户输赢<font color="red">{$order['ying']|default='0'}</font></span>&nbsp;
			</div>
			<hr>
			<div>
				<span>三级下级所得总佣金<font color="red">{$yong_all['sum_yong']|default='0'}</font></span>&nbsp;
				<span>三级下级总充值<font color="red">{$integral_all['add_fen']|default='0'}</font></span>&nbsp;
				<span>三级下级总提款<font color="red">{$integral_all['xia_fen']|default='0'}</font></span><br>	
				<span>三级下级总进项流水<font color="red">{$order_all['sum_add']|default='0'}</font></span>&nbsp;
				<span>三级下级总出项流水<font color="red">{$order_all['sum_del']|default='0'}</font></span>&nbsp;
				<span>三级下级总客户输赢<font color="red">{$order_all['ying']|default='0'}</font></span>&nbsp;
			</div>
			<script src="__PUBLIC__/Home/js/cls.js"></script>
	</body>
	<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
	<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="__PUBLIC__/Admin/js/plugins/iCheck/icheck.min.js"></script>
	<script src="__PUBLIC__/Admin/js/plugins/layer/laydate/laydate.js"></script>
	<script src="__PUBLIC__/Common/layer/layer.js"></script>
	<script type="text/javascript">
			laydate({
			  elem: '#starttime',
			  max: laydate.now(), //+1代表明天，+2代表后天，以此类推
			  istime: true,
			  format: 'YYYY-MM-DD hh:mm:ss', //日期格式
			});
			laydate({
			  elem: '#endtime',
			  max: laydate.now(), //+1代表明天，+2代表后天，以此类推
			  istime: true,
			  format: 'YYYY-MM-DD hh:mm:ss', //日期格式
			});
			$('.timesearch').click(function(e){
				e.stopPropagation();
				var time_value = $(this).attr('time');
				location.href = "{:U('Home/User/offline')}?id={$id}&time="+time_value;
				return false;
			})
	</script>
</html>